home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK2.toast / Development Kits (Disc 2) / QuickTime / Programming Stuff / Documentation / develop articles / develop Issue 17 / MultipleMovies / MyMultipleMoviesApp ƒ / MyApplication Shell (1.0).h < prev    next >
Encoding:
Text File  |  1997-02-26  |  1.9 KB  |  72 lines  |  [TEXT/KAHL]

  1. //--------------------------------------------------------------------------
  2. //
  3. //        MyApplication Shell.
  4. //            by John Wang
  5. //
  6. //        Description:    Shell.
  7. //
  8. //        Version:    1.0        09/07/93    Completed.
  9. //
  10. //--------------------------------------------------------------------------
  11.  
  12. //    #defines:
  13.  
  14. #define        topLeft(r)        (((Point *) &(r))[0])
  15. #define        botRight(r)        (((Point *) &(r))[1])
  16.  
  17. //    Menus.
  18. #define        MENUBAR                128
  19. #define        MENU_APPLEID        128
  20. #define        MENU_FILEID            129
  21. #define        MENU_FILENEW        1
  22. #define        MENU_FILEOPEN        2
  23. #define        MENU_FILECLOSE        4
  24. #define        MENU_FILESAVE        5
  25. #define        MENU_FILESAVEAS        6
  26. #define        MENU_FILEPAGESETUP    8
  27. #define        MENU_FILEPRINT        9
  28. #define        MENU_FILEQUIT        11
  29. #define        MENU_EDITID            130
  30. #define        MENU_EDITUNDO        1
  31. #define        MENU_EDITCUT        3
  32. #define        MENU_EDITCOPY        4
  33. #define        MENU_EDITPASTE        5
  34. #define        MENU_EDITCLEAR        6
  35. #define        MENU_EDITSELECTALL    8
  36. #define        MENU_EDITSHOWCLIP    10
  37.  
  38. //    Alert Resources.
  39. #define        ALERT_ABOUT            128
  40. #define        ALERT_ERROR            129
  41.  
  42. //--------------------------------------------------------------------------
  43.  
  44. //    Globals:
  45.  
  46. extern        Str255    gMyAboutTitle;
  47. extern        Str255    gMyAboutDesc;
  48.  
  49. //--------------------------------------------------------------------------
  50.  
  51. //    Prototypes:
  52.  
  53. void            main(void);
  54.  
  55. void            MAS_initialize(void);
  56. void            MAS_doCommand(long mResult);
  57. void            MAS_adjustMenus(void);
  58. void            MAS_finishup(void);
  59.  
  60. void            MAS_showClip(void);
  61. void            MAS_drawClip(WindowPtr clipWindow);
  62. void            MAS_hideClip(WindowPtr clipWindow);
  63. void            MAS_zoomClip(WindowPtr clipWindow, Boolean zoomOut);
  64.  
  65. Boolean            MAS_ReportError(Str255 procStr, OSErr err);
  66. void            MAS_GetGlobalWindow(WindowPtr theWindow, Rect *windowRect);
  67.  
  68. pascal OSErr    AEOpenHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  69. pascal OSErr    AEOpenDocHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  70. pascal OSErr    AEPrintHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  71. pascal OSErr    AEQuitHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  72.